<?php
$tdatapayment_terms=array();
	$tdatapayment_terms[".NumberOfChars"]=80; 
	$tdatapayment_terms[".ShortName"]="payment_terms";
	$tdatapayment_terms[".OwnerID"]="";
	$tdatapayment_terms[".OriginalTable"]="payment_terms";


	
//	field labels
$fieldLabelspayment_terms = array();
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelspayment_terms["English"]=array();
	$fieldToolTipspayment_terms["English"]=array();
	$fieldLabelspayment_terms["English"]["id"] = "Id";
	$fieldToolTipspayment_terms["English"]["id"] = "";
	$fieldLabelspayment_terms["English"]["payment_term"] = "Payment Term";
	$fieldToolTipspayment_terms["English"]["payment_term"] = "";
	if (count($fieldToolTipspayment_terms["English"])){
		$tdatapayment_terms[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Hong Kong S.A.R.)")
{
	$fieldLabelspayment_terms["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldToolTipspayment_terms["Chinese (Hong Kong S.A.R.)"]=array();
	$fieldLabelspayment_terms["Chinese (Hong Kong S.A.R.)"]["id"] = "Id";
	$fieldToolTipspayment_terms["Chinese (Hong Kong S.A.R.)"]["id"] = "";
	$fieldLabelspayment_terms["Chinese (Hong Kong S.A.R.)"]["payment_term"] = "Payment Term";
	$fieldToolTipspayment_terms["Chinese (Hong Kong S.A.R.)"]["payment_term"] = "";
	if (count($fieldToolTipspayment_terms["Chinese (Hong Kong S.A.R.)"])){
		$tdatapayment_terms[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="Chinese (Taiwan)")
{
	$fieldLabelspayment_terms["Chinese (Taiwan)"]=array();
	$fieldToolTipspayment_terms["Chinese (Taiwan)"]=array();
	$fieldLabelspayment_terms["Chinese (Taiwan)"]["id"] = "Id";
	$fieldToolTipspayment_terms["Chinese (Taiwan)"]["id"] = "";
	$fieldLabelspayment_terms["Chinese (Taiwan)"]["payment_term"] = "Payment Term";
	$fieldToolTipspayment_terms["Chinese (Taiwan)"]["payment_term"] = "";
	if (count($fieldToolTipspayment_terms["Chinese (Taiwan)"])){
		$tdatapayment_terms[".isUseToolTips"]=true;
	}
}
if(mlang_getcurrentlang()=="French")
{
	$fieldLabelspayment_terms["French"]=array();
	$fieldToolTipspayment_terms["French"]=array();
	$fieldLabelspayment_terms["French"]["id"] = "Id";
	$fieldToolTipspayment_terms["French"]["id"] = "";
	$fieldLabelspayment_terms["French"]["payment_term"] = "Payment Term";
	$fieldToolTipspayment_terms["French"]["payment_term"] = "";
	if (count($fieldToolTipspayment_terms["French"])){
		$tdatapayment_terms[".isUseToolTips"]=true;
	}
}


	
	$tdatapayment_terms[".NCSearch"]=true;

	

$tdatapayment_terms[".shortTableName"] = "payment_terms";
$tdatapayment_terms[".nSecOptions"] = 0;
$tdatapayment_terms[".recsPerRowList"] = 1;	
$tdatapayment_terms[".tableGroupBy"] = "0";
$tdatapayment_terms[".mainTableOwnerID"] = "";
$tdatapayment_terms[".moveNext"] = 1;




$tdatapayment_terms[".showAddInPopup"] = false;

$tdatapayment_terms[".showEditInPopup"] = false;

$tdatapayment_terms[".showViewInPopup"] = false;


$tdatapayment_terms[".fieldsForRegister"] = array();

$tdatapayment_terms[".listAjax"] = true;

	$tdatapayment_terms[".audit"] = false;

	$tdatapayment_terms[".locking"] = false;
	
$tdatapayment_terms[".listIcons"] = true;
$tdatapayment_terms[".edit"] = true;
$tdatapayment_terms[".inlineEdit"] = true;
$tdatapayment_terms[".view"] = true;

$tdatapayment_terms[".exportTo"] = true;

$tdatapayment_terms[".printFriendly"] = true;

$tdatapayment_terms[".delete"] = true;

$tdatapayment_terms[".showSimpleSearchOptions"] = true;

$tdatapayment_terms[".showSearchPanel"] = true;


$tdatapayment_terms[".isUseAjaxSuggest"] = true;

$tdatapayment_terms[".rowHighlite"] = true;


// button handlers file names

$tdatapayment_terms[".addPageEvents"] = false;

$tdatapayment_terms[".arrKeyFields"][] = "id";

// use datepicker for search panel
$tdatapayment_terms[".isUseCalendarForSearch"] = false;

// use timepicker for search panel
$tdatapayment_terms[".isUseTimeForSearch"] = false;

$tdatapayment_terms[".isUseiBox"] = false;



$tdatapayment_terms[".isUseInlineAdd"] = true;

$tdatapayment_terms[".isUseInlineEdit"] = true;
$tdatapayment_terms[".isUseInlineJs"] = $tdatapayment_terms[".isUseInlineAdd"] || $tdatapayment_terms[".isUseInlineEdit"];

$tdatapayment_terms[".allSearchFields"] = array();

$tdatapayment_terms[".globSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatapayment_terms[".allSearchFields"]))
{
	$tdatapayment_terms[".allSearchFields"][] = "id";	
}
$tdatapayment_terms[".globSearchFields"][] = "payment_term";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("payment_term", $tdatapayment_terms[".allSearchFields"]))
{
	$tdatapayment_terms[".allSearchFields"][] = "payment_term";	
}


$tdatapayment_terms[".googleLikeFields"][] = "id";
$tdatapayment_terms[".googleLikeFields"][] = "payment_term";



$tdatapayment_terms[".advSearchFields"][] = "id";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("id", $tdatapayment_terms[".allSearchFields"])) 
{
	$tdatapayment_terms[".allSearchFields"][] = "id";	
}
$tdatapayment_terms[".advSearchFields"][] = "payment_term";
// do in this way, because combine functions array_unique and array_merge returns array with keys like 1,2, 4 etc
if (!in_array("payment_term", $tdatapayment_terms[".allSearchFields"])) 
{
	$tdatapayment_terms[".allSearchFields"][] = "payment_term";	
}

$tdatapayment_terms[".isTableType"] = "list";


	

$tdatapayment_terms[".isDisplayLoading"] = true;

$tdatapayment_terms[".isResizeColumns"] = false;





$tdatapayment_terms[".pageSize"] = 20;

$gstrOrderBy = "";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy = "order by ".$gstrOrderBy;
$tdatapayment_terms[".strOrderBy"] = $gstrOrderBy;
	
$tdatapayment_terms[".orderindexes"] = array();

$tdatapayment_terms[".sqlHead"] = "SELECT id,   payment_term";
$tdatapayment_terms[".sqlFrom"] = "FROM payment_terms";
$tdatapayment_terms[".sqlWhereExpr"] = "";
$tdatapayment_terms[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatapayment_terms[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatapayment_terms[".arrGroupsPerPage"] = $arrGPP;

	$tableKeys = array();
	$tableKeys[] = "id";
	$tdatapayment_terms[".Keys"] = $tableKeys;

//	id
	$fdata = array();
	$fdata["strName"] = "id";
	$fdata["ownerTable"] = "payment_terms";
		$fdata["Label"]="Id"; 
	
		
		
	$fdata["FieldType"]= 3;
	
		$fdata["AutoInc"]=true;
	
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "id";
	
		$fdata["FullName"]= "id";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 1;
				$fdata["EditParams"]="";
			
		$fdata["bListPage"]=true; 
	
		
		
		
		
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
				$fdata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapayment_terms["id"]=$fdata;
//	payment_term
	$fdata = array();
	$fdata["strName"] = "payment_term";
	$fdata["ownerTable"] = "payment_terms";
		$fdata["Label"]="Payment Term"; 
	
		
		
	$fdata["FieldType"]= 200;
	
		
			$fdata["UseiBox"] = false;
	
	$fdata["EditFormat"]= "Text field";
	$fdata["ViewFormat"]= "";
	
		
		
		
		
		$fdata["NeedEncode"]=true;
	
	$fdata["GoodName"]= "payment_term";
	
		$fdata["FullName"]= "payment_term";
	
		$fdata["IsRequired"]=true; 
	
		
		
		
		
				$fdata["Index"]= 2;
				$fdata["EditParams"]="";
			$fdata["EditParams"].= " maxlength=45";
		
		$fdata["bListPage"]=true; 
	
		$fdata["bAddPage"]=true; 
	
		$fdata["bInlineAdd"]=true; 
	
		$fdata["bEditPage"]=true; 
	
		$fdata["bInlineEdit"]=true; 
	
		$fdata["bViewPage"]=true; 
	
		$fdata["bAdvancedSearch"]=true; 
	
		$fdata["bPrinterPage"]=true; 
	
		$fdata["bExportPage"]=true; 
	
	//Begin validation
	$fdata["validateAs"] = array();
						$fdata["validateAs"]["basicValidate"][] = "IsRequired";
	
		//End validation
	
				$fdata["FieldPermissions"]=true;
	
		
				
		
		
		
			$tdatapayment_terms["payment_term"]=$fdata;

	
$tables_data["payment_terms"]=&$tdatapayment_terms;
$field_labels["payment_terms"] = &$fieldLabelspayment_terms;
$fieldToolTips["payment_terms"] = &$fieldToolTipspayment_terms;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["payment_terms"] = array();

	
// tables which are master tables for current table (detail)
$masterTablesData["payment_terms"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










$proto541=array();
$proto541["m_strHead"] = "SELECT";
$proto541["m_strFieldList"] = "id,   payment_term";
$proto541["m_strFrom"] = "FROM payment_terms";
$proto541["m_strWhere"] = "";
$proto541["m_strOrderBy"] = "";
$proto541["m_strTail"] = "";
$proto542=array();
$proto542["m_sql"] = "";
$proto542["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto542["m_column"]=$obj;
$proto542["m_contained"] = array();
$proto542["m_strCase"] = "";
$proto542["m_havingmode"] = "0";
$proto542["m_inBrackets"] = "0";
$proto542["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto542);

$proto541["m_where"] = $obj;
$proto544=array();
$proto544["m_sql"] = "";
$proto544["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto544["m_column"]=$obj;
$proto544["m_contained"] = array();
$proto544["m_strCase"] = "";
$proto544["m_havingmode"] = "0";
$proto544["m_inBrackets"] = "0";
$proto544["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto544);

$proto541["m_having"] = $obj;
$proto541["m_fieldlist"] = array();
						$proto546=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "payment_terms"
));

$proto546["m_expr"]=$obj;
$proto546["m_alias"] = "";
$obj = new SQLFieldListItem($proto546);

$proto541["m_fieldlist"][]=$obj;
						$proto548=array();
			$obj = new SQLField(array(
	"m_strName" => "payment_term",
	"m_strTable" => "payment_terms"
));

$proto548["m_expr"]=$obj;
$proto548["m_alias"] = "";
$obj = new SQLFieldListItem($proto548);

$proto541["m_fieldlist"][]=$obj;
$proto541["m_fromlist"] = array();
												$proto550=array();
$proto550["m_link"] = "SQLL_MAIN";
			$proto551=array();
$proto551["m_strName"] = "payment_terms";
$proto551["m_columns"] = array();
$proto551["m_columns"][] = "id";
$proto551["m_columns"][] = "payment_term";
$obj = new SQLTable($proto551);

$proto550["m_table"] = $obj;
$proto550["m_alias"] = "";
$proto552=array();
$proto552["m_sql"] = "";
$proto552["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto552["m_column"]=$obj;
$proto552["m_contained"] = array();
$proto552["m_strCase"] = "";
$proto552["m_havingmode"] = "0";
$proto552["m_inBrackets"] = "0";
$proto552["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto552);

$proto550["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto550);

$proto541["m_fromlist"][]=$obj;
$proto541["m_groupby"] = array();
$proto541["m_orderby"] = array();
$obj = new SQLQuery($proto541);

$queryData_payment_terms = $obj;
$tdatapayment_terms[".sqlquery"] = $queryData_payment_terms;

$tableEvents["payment_terms"] = new eventsBase;

?>
